package com.ambow.Entity;
import java.io.Serializable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.*;

@Entity
@Table
@Cacheable
public class Operator extends ID implements Serializable {
  
	private String account;
	private String password;
	private String name;
	private String tel;
	private String position;
	private String role;
	private String remark;
	
	@OneToMany(targetEntity=DeliverToOther.class,mappedBy="operator")
	private List<DeliverToOther> deliverToOther;
	
	@OneToMany(targetEntity=DeliverToStation.class,mappedBy="operator")
	private List<DeliverToStation> deliverToStation;
	
	@OneToMany(targetEntity=DeliverToStudent.class,mappedBy="operator")
	  private  List<DeliverToStudent> deliverToStudent;
	
	@OneToMany(targetEntity=DeliverToTeacher.class,mappedBy="operator")
	private  List<DeliverToTeacher> deliverToTeacher;
	
	@OneToMany(mappedBy="operator")
	private Set<PackageBook> packageBooks=new HashSet<PackageBook>();//套书
	 
	 @OneToMany(targetEntity=Payment.class,mappedBy="operator")
	 private  List<Payment> payment;
	 
	 @OneToMany(targetEntity=StockCheck.class,mappedBy="operator")
	 private  List<StockCheck> stockCheck;
	 
	 @OneToMany(targetEntity=StockMove.class,mappedBy="operator")
	 private  List<StockMove> stockMove;
	 
	 @OneToMany(targetEntity=StockReceive.class,mappedBy="operator")
	  private  List<StockReceive> stockReceive;
	 @OneToMany(targetEntity=Inventory.class,mappedBy="operator") 
	 private List<Inventory> inventory;
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}



	public List<DeliverToOther> getDeliverToOther() {
		return deliverToOther;
	}

	public void setDeliverToOther(List<DeliverToOther> deliverToOther) {
		this.deliverToOther = deliverToOther;
	}

	public List<DeliverToStation> getDeliverToStation() {
		return deliverToStation;
	}

	public void setDeliverToStation(List<DeliverToStation> deliverToStation) {
		this.deliverToStation = deliverToStation;
	}

	public List<DeliverToStudent> getDeliverToStudent() {
		return deliverToStudent;
	}

	public void setDeliverToStudent(List<DeliverToStudent> deliverToStudent) {
		this.deliverToStudent = deliverToStudent;
	}

	public List<DeliverToTeacher> getDeliverToTeacher() {
		return deliverToTeacher;
	}

	public void setDeliverToTeacher(List<DeliverToTeacher> deliverToTeacher) {
		this.deliverToTeacher = deliverToTeacher;
	}

	public Set<PackageBook> getPackageBooks() {
		return packageBooks;
	}

	public void setPackageBooks(Set<PackageBook> packageBooks) {
		this.packageBooks = packageBooks;
	}

	public List<Payment> getPayment() {
		return payment;
	}

	public void setPayment(List<Payment> payment) {
		this.payment = payment;
	}

	public List<StockCheck> getStockCheck() {
		return stockCheck;
	}

	public void setStockCheck(List<StockCheck> stockCheck) {
		this.stockCheck = stockCheck;
	}

	public List<StockMove> getStockMove() {
		return stockMove;
	}

	public void setStockMove(List<StockMove> stockMove) {
		this.stockMove = stockMove;
	}

	public List<StockReceive> getStockReceive() {
		return stockReceive;
	}

	public void setStockReceive(List<StockReceive> stockReceive) {
		this.stockReceive = stockReceive;
	}
	 	
	
}
